:host {
  --bun-error-color: #e33737;
  --bun-error-monospace: ui-monospace, Menlo, Monaco, "Cascadia Mono",
    "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace",
    "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  --bun-error-width: 512px;
}

:host a {
  color: inherit;
  text-decoration: none;
}

:host a:hover {
  text-decoration: underline;
}
#BunErrorOverlay-container {
  box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.1),
    0px 0px 1px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(42px);
  backface-visibility: visible;
  border: inset 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 17px;
  background-color: rgba(255, 255, 255, 0.92);
  width: var(--bun-error-width);

  position: fixed;
  top: 120px;
  right: 48px;
  z-index: 999999;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.BunErrorRoot--FullPage #BunErrorOverlay-container {
  position: static;
  top: unset;
  right: unset;
  margin: 60px auto;
}

.BunError-error-message--quoted {
  color: rgb(25, 46, 9);
}

:host a {
  color: inherit;
}

.BunError-Summary-ErrorIcon {
  content: url("");
  width: 20px;
  height: 19px;

  margin-right: 6px;
  display: block;
}

.BunError-Summary-CloseIcon {
  content: url("");
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
}

.BunError-Summary-CloseIcon:hover {
  transform: scale(1.2);

  background-color: rgb(255, 255, 255);
}

.BunError-Summary {
  display: grid;
  grid-template-columns: min-content auto min-content min-content;
  grid-template-rows: 46px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgb(220, 220, 220);
}

.BunError-footer {
  display: flex;
  border-top: 1px solid rgb(220, 220, 220);
  align-items: center;

  grid-template-columns: auto auto;
  justify-content: space-between;
}

.BunError-footerItem {
  padding: 12px 18px;
}

.BunError-Summary-Title {
  font-weight: 500;
  letter-spacing: 0.36px;
}

.BunError-ErrorTag,
.BunError-error-code {
  color: rgb(165, 165, 165);
  font-weight: 500;
  font-size: 12pt;
}

.BunError-ErrorTag {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 300;
}

.BunError-error-header {
  display: flex;
  align-items: center;
  gap: 0.5ch;
}

.BunError-error-message {
  color: var(--bun-error-color);
  font-size: 16pt;
  font-weight: bold;
}

.BunError-list {
  margin-top: 14px;
  gap: 14px;
}

.BunError-error-subtitle,
.BunError-error-header,
.BunError-error-message {
  padding-left: 18px;
  padding-right: 18px;
}

.BunError-error-subtitle {
  font-size: 500;
}

.BunError-NativeStackTrace {
  margin-top: 0;
  width: 100%;
}

.BunError-NativeStackTrace-filename {
  padding: 8px 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.36px;
  margin-bottom: 8px;
  display: block;
}

.BunError-NativeStackTrace-filename:hover {
  text-decoration: underline;
}

.BunError-SourceLines-lines a {
  text-decoration: none;
}

.BunError-SourceLine-text::selection,
.BunError-SourceLine-text *::selection {
  background-color: #6437e3;
  color: white;
}

.BunError-SourceLine-text:active:before {
  width: 61px;
  z-index: -1;
  pointer-events: none;
}

.BunError-SourceLines-lines {
}

.BunError-SourceLine {
  display: grid;
  grid-template-columns: min-content auto;
}

.BunError-SourceLines {
  font-size: 14px;
  align-items: center;
  overflow-x: auto;
}

.BunError-CopyButton {
  font-weight: 500;
  font-size: 1em;
  vertical-align: middle;
  display: flex;
  align-content: center;
  align-items: center;
  border-right: 1px solid #ccc;
  background: #fcfcfc;
  border-bottom-left-radius: 12px;
  color: #333;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s linear;
}

.BunError-CopyButton,
#BunError-poweredBy {
  padding: 12px 12px;
}
.BunError-Summary-help {
  display: flex;
  white-space: nowrap;
  gap: 9px;
  margin-right: 18px;

  border-right: 1px solid rgb(220, 220, 220);
  height: 100%;
  align-items: center;
  padding-right: 18px;
  text-decoration: none;
  cursor: pointer;
}

.BunError-Summary-help svg {
  opacity: 0.5;
}

#BunErrorOverlay-container .BunError-Summary-help {
  color: #999;
}

#BunErrorOverlay-container .BunError-Summary-help:hover {
  color: #5865f2;
}

#BunErrorOverlay-container .BunError-Summary-help:hover svg {
  opacity: 1;
}

.BunError-CopyButton svg {
  width: 18px;
  margin-right: 0.7em;
  opacity: 0.75;
  margin-left: 6px;
  fill: currentColor;
  stroke: currentColor;
}

.BunError-CopyButton:hover {
  background: #6437e3;
  color: white;

  border-right-color: #6437e3;
}

.BunError-CopyButton:active {
  transform: scale(1.03, 1.03);
  transform-origin: center center;
}

.BunError-SourceLine-text {
  white-space: pre;
  cursor: text;
  display: block;
  position: relative;

  font-family: var(--bun-error-monospace);
}

.BunError-SourceLine-number {
  font-variant: tabular-nums;
  display: block;
  border-left: 4px solid transparent;
  margin-left: -1px;
  cursor: pointer;
  padding-left: 14px;
  padding-right: 12px;
  text-align: right;

  text-decoration: none;
  position: relative;
}

.BunError-SourceLine-number,
.BunError-SourceLine-number * {
  user-select: none;
  -webkit-user-select: none;
}

.BunError-SourceLine-number:active + .BunError-SourceLine-text {
  background-color: #6437e3;
  color: white;
}

.BunError-SourceLine-number:hover {
  background-color: #7443fa;
  color: white;
}

.BunError-SourceLine:hover .BunError-SourceLine-number {
  border-left-color: #7443fa;
}

.BunError-SourceLine-number--empty {
  color: rgb(165, 165, 165);
}

.BunError-SourceLine-number,
.BunError-SourceLine-text {
  height: 18px;
}

.BunError-SourceLines-highlighter--0,
.BunError-SourceLines-highlighter--1,
.BunError-SourceLines-highlighter--2,
.BunError-SourceLines-highlighter--3,
.BunError-SourceLines-highlighter--4,
.BunError-SourceLines-highlighter--5 {
  position: absolute;
}

#BunErrorOverlay-container .BunError-SourceLine-text--highlight {
  color: #e33737;
}

#BunError-poweredBy {
  height: 16px;

  content: url("");
}

#BunError-SourceLine-text-highlightExpression {
  font-weight: bold;
  text-decoration-style: wavy;
}

.BunError-JSException--TypeError #BunError-SourceLine-text-highlightExpression {
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.BunError-Indented {
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-divet {
  vertical-align: bottom;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-error-typename {
  font-family: var(--bun-error-monospace);
  color: #e39437;
  font-weight: bold;
}

.BunError-error-muted {
  font-weight: normal;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-error-muted,
.BunError-StackFrame--muted {
  color: rgb(165, 165, 165);
}

.BunError-NativeStackTrace .BunError-error-typename {
  user-select: none;
  -webkit-user-select: none;
}

.BunError-StackFrame-link {
  text-align: right;
}

.BunError-StackFrame-link-content {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  gap: 0.25ch;
  white-space: nowrap;
}

.BunError-StackFrame {
  display: table-row;
}

.BunError-StackFrame:hover {
  border-left-color: #5865f2;
}

.BunError-StackFrame-identifier {
  padding-right: 18px;
  font-size: 0.8em;
  font-family: var(--bun-error-monospace);
  letter-spacing: 0.49px;
  width: var(--max-length, auto);
  max-width: 48ch;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
}

.BunError-error-message--mono {
  font-family: var(--bun-error-monospace);
}
.BunError-StackFrame-identifier,
.BunError-StackFrame-link {
  display: table-cell;
  font-weight: 500;
}

.BunError-BuildError {
  padding-bottom: 18px;
}

.BunError-StackFrame-link-content {
  font-size: 0.8em;
}

.BunError-StackFrames {
  display: table;
  table-layout: auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 4px;
  line-height: 1.2;
  border-collapse: separate;
  border-spacing: 12px 6px;

  background-color: rgb(244, 244, 244);
}

.BunError-StackFrames-container {
  overflow-x: auto;
  max-width: var(--bun-error-width);
}
